#include <iostream>
#include "EquationSolver.hpp"
#include "Function.hpp"
#include <cmath>


class F: public Function {
	public:
		double operator() (double x) const {
                        return x-tan(x);
                }
};

void solve_f() {
        std::cout << "Solving x - tan x on [4.5,7.7]" << std::endl;
        Bisection_Method solver_f(F(), 4.5, 7.7);
        double x = solver_f.solve();
        std::cout << "A root is: " << x << std::endl;
}
int main(){
	solve_f();
	return 0;
}

